package com.myorg.domain;

import org.apache.hadoop.fs.BlockLocation;

public class BlockInfo {
	private String filePath;

	private BlockLocation blockLocation;

	public BlockInfo(String filePath, BlockLocation blockLocation) {
		this.filePath = filePath;
		this.blockLocation = blockLocation;
	}

	public String getFilePath() {
		return filePath;
	}

	public BlockLocation getBlockLocation() {
		return blockLocation;
	}

	public boolean isFileCompressed() {
		return filePath != null && filePath.toUpperCase().endsWith(".TXT.GZIP");
	}
}
